package com.auto.code.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.auto.code.dao.TemplatePathDAO;
import com.auto.code.domain.TemplatePathDO;
import com.auto.code.mapper.TemplatePathMapper;

@Repository
public class TemplatePathDAOImpl implements TemplatePathDAO{
	@Autowired
	private TemplatePathMapper templatePathMapper;
	
	@Override
	public int deleteById(Long id) {
		return templatePathMapper.deleteById(id);
	}

	@Override
	public int insert(TemplatePathDO record) {
		return templatePathMapper.insert(record);
	}

	@Override
	public TemplatePathDO getById(Long id) {
		return templatePathMapper.getById(id);
	}

	@Override
	public int update(TemplatePathDO record) {
		return templatePathMapper.update(record);
	}

	@Override
	public List<TemplatePathDO> queryList(Map<String, Object> parseMap) {
		return templatePathMapper.queryList(parseMap);
	}
}